package org.jeecg.modules.yw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("categories")
public class Category {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id; // 主键id

    @ApiModelProperty(value = "分类名称")
    private String name; // 分类名称

    @ApiModelProperty(value = "创建人")
    private String creator; // 创建人

    @ApiModelProperty(value = "创建时间")
    private Date createTime; // 创建时间
}
